package com.utilsapi.update_app_store;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import com.utilsapi.R;

import java.util.List;

public class UpdateActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_update);
        List<String> markects = Utils.getInstalledMarkect(this);
        for (String mm:markects){
            Log.e("tag","-------name= "+mm+"\n");
        }
    }


    public void on_leshi_market(View view) {
        //以下两种都可以
        //Utils.goToLeTVStoreDetail(this,"com.example.administrator.xox_map1");
        Utils.openMarket(this,"com.example.administrator.xox_map1",Utils.leshi_uri);
    }

    public void on_samxing_market(View view) {
        //Utils.goToSamsungappsMarket(this,"com.example.administrator.xox_map1");
        Utils.openMarket(this,"com.example.administrator.xox_map1",Utils.sanxing_uri);
    }

    public void on_qqDownLoader_market(View view) {
        //Utils.goToQQdownloaderMarket(this,"com.example.administrator.xox_map1");
        Utils.openMarket(this,"com.example.administrator.xox_map1",Utils.qqDownLaoder_uri);
    }

    public void on_defualt_and_all_market(View view) {
        Utils.goToDefulatMarket(this,"com.example.administrator.xox_map1");
    }
}
